package com.simit.service;

import com.simit.pojo.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserService {

    List<User> selectAll();

    User select(String username, String password);

    User selectByUsername(String username);

    void add(User user);

    void addMoney(String username, int moneyAdd);

    void subtractMoney(String username, int moneySubtract);

    @Transactional
    void transfer(String usernameOut, String usernameIn, int money);
}
